import request from '../../utils/request'

// 分页查询
export function rulePageList(data: object) {
  return request({
    url: '/goodsRule/pageList',
    method: 'post',
    data: data
  })
}

// 新增编辑
export function addOrUpdateRule(data: object) {
    return request({
      url: '/goodsRule/addOrUpdate',
      method: 'post',
      data: data
    })
  }

  // 删除
export function deleteRuleById(id: object) {
    return request({
      url: '/goodsRule/deleteById？id='+id,
      method: 'post'
    })
  }